package com.clock.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.clock.common.annotation.Excel;
import com.clock.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
 * 服务信息对象 shop_service
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Entity
public class ShopService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务ID */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long serviceId;

    /** 服务名 */
    @Excel(name = "服务名")
    private String serviceName;

    /** 服务类型 */
    @Excel(name = "服务类型")
    private String serviceCategory;

    /** 服务内容 */
    @Excel(name = "服务内容")
    private String serviceDetails;

    /** 服务图片 */
    @Excel(name = "服务图片")
    private String servicePic;

    /** 服务时长（单位：分钟） */
    @Excel(name = "服务时长", readConverterExp = "单=位：分钟")
    private Integer serviceTime;

    /** 服务价格（单位：元） */
    @Excel(name = "服务价格", readConverterExp = "单=位：元")
    private Integer servicePrice;

    /** 销量 */
    @Excel(name = "销量")
    private Integer sold;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long shopId;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date launchTime;

    /** 下架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date downTime;

    /** 逻辑删除，0-已删除，1-未删除 */
    @Excel(name = "逻辑删除，0-已删除，1-未删除")
    private Integer isDeleted;

    public void setServiceId(Long serviceId) 
    {
        this.serviceId = serviceId;
    }

    public Long getServiceId() 
    {
        return serviceId;
    }
    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }
    public void setServiceCategory(String serviceCategory) 
    {
        this.serviceCategory = serviceCategory;
    }

    public String getServiceCategory() 
    {
        return serviceCategory;
    }
    public void setServiceDetails(String serviceDetails) 
    {
        this.serviceDetails = serviceDetails;
    }

    public String getServiceDetails() 
    {
        return serviceDetails;
    }
    public void setServicePic(String servicePic) 
    {
        this.servicePic = servicePic;
    }

    public String getServicePic() 
    {
        return servicePic;
    }
    public void setServiceTime(Integer serviceTime) 
    {
        this.serviceTime = serviceTime;
    }

    public Integer getServiceTime() 
    {
        return serviceTime;
    }
    public void setServicePrice(Integer servicePrice) 
    {
        this.servicePrice = servicePrice;
    }

    public Integer getServicePrice() 
    {
        return servicePrice;
    }
    public void setSold(Integer sold) 
    {
        this.sold = sold;
    }

    public Integer getSold() 
    {
        return sold;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setLaunchTime(Date launchTime) 
    {
        this.launchTime = launchTime;
    }

    public Date getLaunchTime() 
    {
        return launchTime;
    }
    public void setDownTime(Date downTime) 
    {
        this.downTime = downTime;
    }

    public Date getDownTime() 
    {
        return downTime;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("serviceId", getServiceId())
            .append("serviceName", getServiceName())
            .append("serviceCategory", getServiceCategory())
            .append("serviceDetails", getServiceDetails())
            .append("servicePic", getServicePic())
            .append("serviceTime", getServiceTime())
            .append("servicePrice", getServicePrice())
            .append("sold", getSold())
            .append("shopId", getShopId())
            .append("launchTime", getLaunchTime())
            .append("downTime", getDownTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
